package com.czxy.tanhua.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @Author 爱吃豆的土豆、
 * @Date 2023/4/11 10:57
 */
@Document("sequence")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Sequence implements Serializable {
    private ObjectId id;

    private long seqId;  //自增序列

    private String collName; //集合名称
}
